import request from "@/utils/request";

 
// 查询库存列表
export function getKcList(query) {
  return request({
    url: "/storehouse/inventoryStocktaking/list",
    method: "get",
    params: query,
  });
}
// 新增库存
export function addKc(data) {
  return request({
    url: "/storehouse/inventoryStocktaking",
    method: "post",
    data: data,
  });
}

// 查询库存信息
export function detailKc(id) {
  return request({
    url: "/storehouse/inventoryStocktaking/" + id,
    method: "get",
  });
}
// 修改库存
export function updateKc(data) {
  return request({
    url: "/storehouse/inventoryStocktaking",
    method: "put",
    data: data,
  });
}
// 删除库存
export function delKc(id) {
  return request({
    url: "/storehouse/inventoryStocktaking/" + id,
    method: "delete",
  });
}
